package com.dylan.channel.v11.listener;

import com.dylan.channel.v11.future.ChannelFuture;

public interface ChannelFutureListener extends GenericFutureListener<ChannelFuture> {

    ChannelFutureListener CLOSE = new ChannelFutureListener() {
        @Override
        public void operationComplete(ChannelFuture future) {
            System.out.println("进入关闭回调");
           // future.channel().close();
        }
    };


    ChannelFutureListener CLOSE_ON_FAILURE = new ChannelFutureListener() {
        @Override
        public void operationComplete(ChannelFuture future) {
            if (!future.isSuccess()) {
                System.out.println("异常关闭回调");
                // future.channel().close();
            }
        }
    };
}
